<?php
header("Content-type:text/html;charset=utf-8");
require_once 'sys_fns.php';
require_once 'MySmarty.php';
require_once './model/BookBaseEntity.php';
require_once './controllers/DetailController.php';


$detail_url   = $_POST['detail_url'];
$from_tag     = $_POST['from_tag'];
$base_book_json= $_POST['json_book'];
$base_entity= json_decode($base_book_json);


$detail_controller = new DetailController($base_entity, $detail_url, $from_tag);
/*不显示正则提示的警告*/
$detail_entity     = @$detail_controller->getBookDetailInfo();
$smarty = new MySmarty();
$smarty->assign('detail_entity',$detail_entity);
$smarty->display('detail.html');

?>